package com.nft.service.school.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.nft.base.BaseQuery;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel(value="BookReq对象", description="图书信息入参")
@Accessors(chain = true)
public class BookReq extends BaseQuery implements Serializable {
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "图书信息标题")
    private String title;

    @ApiModelProperty(value = "图书信息内容")
    private String content;

    @ApiModelProperty(value = "年级")
    private String grade;

    @ApiModelProperty(value = "学科")
    private String subject;

    @ApiModelProperty(value = "分册")
    private String dispart;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "所属用户")
    private Long userId;
}
